package com.xja.house.ssm.service.impl;

import com.xja.house.ssm.entity.Users;
import com.xja.house.ssm.mapper.UsersMapper;
import com.xja.house.ssm.service.UsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("usersService")
public class UsersServiceImpl implements UsersService {

    @Autowired
    private UsersMapper usersMapper;

    public Users selectByName(String name) {
        return usersMapper.selectByName(name);
    }

    public void addUsers(Users users) {
        usersMapper.insert(users);
    }
}
